package com.xiangge.zuoye.Demo3;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 15:31
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Manager m1 = new Manager("项目经理","123",15000,6000);
        m1.work();
        Manager m2 = new Manager();
        m2.setName("项目经理");
        m2.setId("123");
        m2.setSalary(15000);
        m2.setBonus(6000);
        m2.work();

        Coder c1 = new Coder("程序员","135",10000);
        c1.work();
        Coder c2 = new Coder();
        c2.setName("程序员");
        c2.setId("135");
        c2.setSalary(10000);
        c2.work();

    }
}
